package com.yibei.currentutils.model;

public class BucketDTO {

    private Integer capacity;

    private Integer allowQuota;

    private Integer perSecond;

    private boolean isopen;

    public boolean isIsopen() {
        return isopen;
    }

    public void setIsopen(boolean isopen) {
        this.isopen = isopen;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    public Integer getAllowQuota() {
        return allowQuota;
    }

    public void setAllowQuota(Integer allowQuota) {
        this.allowQuota = allowQuota;
    }

    public Integer getPerSecond() {
        return perSecond;
    }

    public void setPerSecond(Integer perSecond) {
        this.perSecond = perSecond;
    }

    public BucketDTO(Integer capacity, Integer allowQuota, Integer perSecond, boolean isopen) {
        this.allowQuota = allowQuota;
        this.capacity = capacity;
        this.isopen = isopen;
        this.perSecond = perSecond;
    }

}
